package com.ternnetwork.batch.mapper.demo;

import com.ternnetwork.batch.item.mapper.sms.ModelToMobilePhoneShortMessageMapper;
import com.ternnetwork.batch.model.demo.CreditBill;
import com.ternnetwork.batch.sms.MobilePhoneShortMessage;

public class CreditBillToMobilePhoneShortMessageMapper
		implements ModelToMobilePhoneShortMessageMapper<MobilePhoneShortMessage> {

	
	public MobilePhoneShortMessage map(Object t) throws Exception {
		   CreditBill creditBill=(CreditBill)t;
  	       MobilePhoneShortMessage sms=new MobilePhoneShortMessage();
 		   sms.setContent(creditBill.getName());
 		   sms.setTo(creditBill.getMobilePhoneNo());
    	   return sms;
	}

}
